Skip to content

Fix windows-2025 example builds by passing MSVC aligned-storage define through nvcc - #487

Draft
cloudhan with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-failing-github-actions-job
Draft

Fix windows-2025 example builds by passing MSVC aligned-storage define through nvcc#487
cloudhan with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-failing-github-actions-job

Conversation

Copilot AI commented Jul 11, 2026

Copy link
Copy Markdown

The Test Examples Build workflow was failing on windows-2025 (CUDA 12.6.3) during @rules_cuda_examples//basic:all because MSVC STL static assertions were triggered in nvcc host compilation.
This change updates the Windows CI build flags so nvcc forwards the required MSVC define.

  • CI workflow change (.github/workflows/build-tests.yaml)

    • In the Windows MSVC compatibility step, add:
      • --@rules_cuda//cuda:copts=-Xcompiler=/D_ENABLE_EXTENDED_ALIGNED_STORAGE
    • Keep existing _ALLOW_COMPILER_AND_STL_VERSION_MISMATCH behavior intact.
  • Effect on failing job

    • Aligns NVCC+MSVC invocation on windows-2025 with VS 2025 STL requirements.
    • Targets only Windows matrix jobs; no Linux/LLVM path changes.
- name: Bazel build config to allow unsupported compilers (MSVC)
  if: ${{ startsWith(matrix.cases.os, 'windows') }}
  run: |
    echo "build --@rules_cuda//cuda:copts=-D=_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH" >> $HOME/.bazelrc
    echo "build --@rules_cuda//cuda:copts=-Xcompiler=/D_ENABLE_EXTENDED_ALIGNED_STORAGE" >> $HOME/.bazelrc

Copilot AI changed the title [WIP] Fix failing GitHub Actions job Test Examples Build (CUDA 12.6.3) Fix windows-2025 example builds by passing MSVC aligned-storage define through nvcc Jul 11, 2026
Copilot AI requested a review from cloudhan July 11, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants